<?php get_header() ?>
<?php
$option = get_option('tvpresident_1_settings');
?>
<div id="content">
        <div class="top-content">
          <div class="slideshow">
            <?php if ( function_exists('show_skitter') ) { show_skitter(); } ?>
          </div>
          <div id="module-recent">
            <div class="divtitle">Top News</div>
            <div class="module-content">
              <?php
                wp_reset_query();
                $idObj = get_category_by_slug('quick-news'); 
                query_posts(array('order'=>'DESC','category__in' => array($idObj->cat_ID),'posts_per_page'=>20));
                while (have_posts()): the_post(); ?>
                <dl>
                  <dt><?php the_time('m-d-Y'); ?></dt>
                  <dd>
                  <a target="_blank" href="<?php the_permalink() ?>"><?php the_title(); ?></a></dd>
                </dl>
               <?php endwhile; ?>
            </div>
          </div>
          <div style="clear:both;"></div>
          
        </div>
        <div class="ngangborder"></div>
        <div class="left-content">
          
          <div style="clear:both"></div>
            
        
          
          <div class="divlist">
            <div class="divtitle">Excellent Company </div>
            <div class="ngangborder"></div>
            <div class="divcontent">
              
          <div class="listuser">
            <?php
              wp_reset_query();
              $idObj = get_category_by_slug('top-president'); 
              global $post;
              query_posts(array('order'=>'DESC','category__in' => array($idObj->cat_ID)));
              while (have_posts()): the_post(); 
              $currCat = get_the_category($post->ID);
              foreach($currCat as $key=>$value){
                if(get_cat_slug($value->category_parent)!='business') unset($currCat[$key]);
              }
              $currCat = array_values($currCat);
              ?>
               <div class="user">
                  <div class="img"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(array(100,100),array('style'=>'width:100px;height:100px;')); ?></a></div>
                  <div class="usercontent1">
                  <p class="name"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></p>
                  <p class="job"><span class="noticetype">Type</span> <?php echo $currCat[0]->cat_name; ?></p>
                  <a href="<?php the_permalink() ?>"><img src="<?php echo bloginfo('template_url'); ?>/img/watchingbutton.png"></a>
                  
                  </div>
                  <div style="clear:both;"></div>
              </div>
             <?php endwhile; ?>
            <div style="clear:both;"></div>
          </div>
          </div>
          </div>
          
          <div class="divpresident">
            <div class="divtitle">List of companies that are currently airing  </div>
            <div class="ngangborder" style="text-align: center;">
                        <img src="<?php echo bloginfo('template_url'); ?>/img/btimg.jpg" >

            </div>
            
            <div class="divcontent">
              
            </div>
          </div>
        </div>
        <div class="right-content">
          <?php get_sidebar() ?>
        </div>
        <div style="clear:both"></div>
      </div>
      <div style="clear:both;"></div>
<?php get_footer() ?>